{% extends 'student/student_base.html' %}

{% block title %}
{{ request.session.user_name }}成绩
{% endblock title %}
 {% block studentContent%}


  {% if scores %}

<div class="row-fluid">
                        <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <div class="muted pull-left">成绩</div>
                                <div class="pull-right"><span class="badge badge-warning">View More</span>

                                </div>
                            </div>
                            <div class="block-content collapse in">
                                <div class="span3">
                                    <div class="chart" data-percent="{{ a }}">{{ a }}%</div>
                                    <div class="chart-bottom-heading"><span class="label label-info">优秀</span>

                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="chart" data-percent="{{ b }}">{{ b }}%</div>
                                    <div class="chart-bottom-heading"><span class="label label-info">良好</span>

                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="chart" data-percent="{{ c }}">{{ c }}%</div>
                                    <div class="chart-bottom-heading"><span class="label label-info">及格</span>

                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="chart" data-percent="{{ d }}">{{ d }}%</div>
                                    <div class="chart-bottom-heading"><span class="label label-info">不及格</span>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- /block -->
                    </div>
<div class="row-fluid">
                        <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <div class="muted pull-left">成绩表</div>
                            </div>
                            <div class="block-content collapse in">
                                <div class="span12">
                                    
  									<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
								     <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>课程号</th>
                                                <th>课程名称</th>
                                                <th>所属学院</th>
                                                <th>任课教师</th>
                                                <th>上课教室</th>
                                                <th>上课时间</th>
                                                <th>成绩</th>
                                            </tr>
                                        </thead>
										<tbody>
											    	 {% for score in scores %}
                                               
       
                                            <tr>
                                                <td>{{ forloop.counter }}</td>
                                                <td>{{ score.studentSelectCourse_course }}</td>
                                                <td>{{ score.studentSelectCourse_courseCourseName }}</td>
                                                <td>{{ score.studentSelectCourse_stduentStudentInstitute }}</td>
                                                <td>{{ score.studentSelectCourse_courseTeacherName }}</td>
                                                <td>{{ score.studentSelectCourse_course.selectCourseClassroom }}</td>
                                                <td>{{ score.studentSelectCourse_course.selectCourseClassTime }}</td>
                                                <td>{{ score.studentSelectCourse_score|default:'--' }}</td>

                                            </tr>
                             
                                           {% endfor %}
										</tbody>
									</table>
                                </div>
                            </div>
                        </div>
                        <!-- /block -->
                    </div>
       {% else %}
        <h2>没有成绩！</h2>
    {% endif %}
                 
 {% endblock studentContent %}